<template>
  <el-menu-item :index="data.data.url" :route="data.data.url">
      <!-- <span> -->
      <i :class="data.data.icon" v-if="data.data.icon"></i>
      <span>{{data.data.name}}</span>
      <!-- </span> -->
  </el-menu-item>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'MenuItem',

  props:{
    data:Object,
    index:String
  },

  data(){
    return {
    }
  },

  methods:{
  },

  computed:{
  },

  mounted(){
    // console.log("on mounted Header")
  },

  setup(){
    // const store = useStore()
    // return {
    //   LoginByUsername:(userObj:any)=> store.dispatch('LoginByUsername')
    // }
  }

})
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
